import blank from '@/views/blank'
import page404 from '@/views/404'

export default [
	{
		path      : '/',
		redirect: 'index',
	},
	{
		path       : '/index',
		name     : "index",
		component: () => import('@/views/page/index/index.vue'),
		meta     : { title: "泉州卓恩" },
	},
	
	{
		path: '/worker',
		name: "worker",
		component: () => import('@/views/page/worker/worker.vue'),
		meta: {title:"员工工作台"}
	},
	
	{
		path: '/couponGet',
		name: "couponGet",
		component: () => import('@/views/page/couponGet/couponGet.vue'),
		meta: {title:"卓恩优惠券"}
	},
	
	{
		path: '/login',
		name: "login",
		component: () => import('@/views/page/login/login.vue'),
		meta: {title:"企业微信登录"}
	},
	
	{
		path: '/loginWx',
		name: "loginWx",
		component: () => import('@/views/page/loginWx/loginWx.vue'),
		meta: {title:"微信登录"}
	},
	
	{ path: '/blank', name: 'blank', component: blank },
	// pathMatch is the name of the param, e.g., going to /not/found yields
	// { params: { pathMatch: ['not', 'found'] }}
	// this is thanks to the last *, meaning repeated params and it is necessary if you
	// plan on directly navigating to the not-found route using its name
	{ path: '/:pathMatch(.*)*', name: 'not-found', component: page404 },
	// if you omit the last `*`, the `/` character in params will be encoded when resolving or pushing
	{ path: '/:pathMatch(.*)', name: 'bad-not-found', component: page404 },
]